package com.sqx.modules.app.dao;

/**
 * @description：TODO
 * @author： qiao
 * @create： 2024/11/6 16:31
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sqx.modules.app.entity.BlockAndUser;
import com.sqx.modules.app.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BlockAndUserDao extends BaseMapper<BlockAndUser> {

    IPage<BlockAndUser> selectPageByUserId(@Param("pages") IPage<BlockAndUser> pages,
                                           @Param("userName") String userName,
                                           @Param("userId") Long userId);

    IPage<BlockAndUser> selectAllList(@Param("pages") IPage<BlockAndUser> pages,
                                      @Param("user") UserEntity user);
}
